package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.setting.EquipmentInfo;
import com.org.dao.setting.EquipmentInfoMapper;
import com.org.service.EquipmentService;

@Service("equipmentService")
public class EquipmentServiceimpl implements EquipmentService {
	@Autowired
	private EquipmentInfoMapper equipmentInfoMapper;

	@Override
	public List<EquipmentInfo> findAll() {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.findAll();
	}

	@Override
	public List<EquipmentInfo> findById(int equipmentId) {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.findById(equipmentId);
	}

	@Override
	public boolean addEquipment(EquipmentInfo equipmentInfo) {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.addEquipment(equipmentInfo);
	}

	@Override
	public boolean deleteEquipment(int equipmentId) {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.deleteEquipment(equipmentId);
	}

	@Override
	public boolean updateEquipment(EquipmentInfo equipmentInfo) {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.updateEquipment(equipmentInfo);
	}

	@Override
	public void updatePlan(EquipmentInfo equipmentInfo) {
		// TODO Auto-generated method stub
		 equipmentInfoMapper.updatePlan(equipmentInfo);
	}

	@Override
	public List<EquipmentInfo> findPlan(int equipmentId) {
		// TODO Auto-generated method stub
		return equipmentInfoMapper.findPlan(equipmentId);
	}

}
